home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Displayer
- BackColor = &H00808080&
- Caption = "Put Report Name Here in Code"
- ControlBox = 0 'False
- Height = 4965
- Left = 1110
- LinkTopic = "Form2"
- MinButton = 0 'False
- ScaleHeight = 4275
- ScaleWidth = 7485
- Top = 1185
- Width = 7605
- Begin VScrollBar VScroll
- Height = 4035
- LargeChange = 15
- Left = 7260
- TabIndex = 1
- Top = 0
- Width = 255
- End
- Begin HScrollBar HScroll
- Height = 255
- Left = 0
- Max = 1
- TabIndex = 2
- Top = 4020
- Width = 7275
- End
- Begin PictureBox Display
- AutoRedraw = -1 'True
- Height = 4035
- Left = 0
- ScaleHeight = 4005
- ScaleWidth = 11490
- TabIndex = 0
- Top = 0
- Width = 11520
- End
- Begin Menu FileMenu
- Caption = "&File"
- Begin Menu PrintMenu
- Caption = "&Print"
- End
- Begin Menu seplinea
- Caption = "-"
- End
- Begin Menu CloseMenu
- Caption = "&Close"
- End
- Begin Menu CancelMenu
- Caption = "Cancel"
- End
- End
- Begin Menu HelpMenu
- Caption = "&Help"
- End
- Sub CancelMenu_Click ()
- 'put code here to indicate that the cancel button was pressed.
- Displayer.Hide
- End Sub
- Sub CloseMenu_Click ()
- Display.SetFocus
- Displayer.Hide
- End Sub
- Sub Form_Activate ()
- Dim t As Single
- Display.Top = 0
- t = Display.Height - Displayer.Height
- If t < 0 Then t = 0
- VScroll.Max = t \ Display.TextHeight("T") + 1
- End Sub
- Sub Form_Deactivate ()
- Display.Height = Displayer.ScaleHeight
- Display.Cls
- Displayer.Hide
- End Sub
- Sub Form_Resize ()
- VScroll.Left = Displayer.ScaleWidth - VScroll.Width
- VScroll.Height = Displayer.ScaleHeight - HScroll.Height
- VScroll.LargeChange = Displayer.ScaleHeight \ Display.TextHeight("T") - 1
- HScroll.Width = Displayer.ScaleWidth - VScroll.Width
- HScroll.Top = Displayer.ScaleHeight - HScroll.Height
- End Sub
- Sub HScroll_Change ()
- If HScroll.Value Then
- Display.Left = Displayer.ScaleWidth - Display.Width
- Else
- Display.Left = 0
- End If
- End Sub
- Sub VScroll_Change ()
- Display.Top = -VScroll.Value * Display.TextHeight("T")
- End Sub
-